package cn.wolfcode.luowowo.acticle.query;

import lombok.Getter;
import lombok.Setter;

import java.util.HashMap;
import java.util.Map;

/**
 * 目的地查询条件
 */
@Getter
@Setter
public class DestinationCondition {
    private int min;
    private int max;
    public DestinationCondition(int min, int max) {
        this.min = min;
        this.max = max;
    }
    public static final Map<Integer, DestinationCondition> CONDITION_TRAVELDAYS;
    static{
        CONDITION_TRAVELDAYS = new HashMap<>();
        CONDITION_TRAVELDAYS.put(-1, new DestinationCondition(-1, Integer.MAX_VALUE));
        CONDITION_TRAVELDAYS.put(1, new DestinationCondition(2, 3));
        CONDITION_TRAVELDAYS.put(2, new DestinationCondition(4, 5));
        CONDITION_TRAVELDAYS.put(3, new DestinationCondition(6, 9));
        CONDITION_TRAVELDAYS.put(4, new DestinationCondition(10, Integer.MAX_VALUE));
    }
}
